home *** CD-ROM | disk | FTP | other *** search
/ How Many Bugs in a Box / How Many Bugs in a Box.cdr / bugs / act3 / 00178.ls < prev    next >
Encoding:
Text File  |  1995-03-28  |  690 b   |  31 lines

  1. on givehintold saywhat
  2.   global keyout, ogre
  3.   set keyout to 0
  4.   puppetSprite(35, 1)
  5.   set newy to -50
  6.   set newx to random(540) + 50
  7.   set the locH of sprite 35 to newx
  8.   set the locV of sprite 35 to newy
  9.   defbuggy()
  10.   flapto(ogre, newx, 50, 90, 5)
  11.   talkyou(saywhat)
  12.   if the mouseDown then
  13.     exit
  14.   end if
  15.   flapto(ogre, newx, newy, 60, 5)
  16.   set the locH of sprite 35 to -200
  17.   puppetSprite(35, 0)
  18.   updateStage()
  19. end
  20.  
  21. on givehint saywhat
  22.   if the number of cast saywhat > 0 then
  23.     set soundtime to the size of cast saywhat / 183
  24.     puppetSound(saywhat)
  25.     set ptime to the timer + soundtime + 10
  26.     repeat while the timer < ptime
  27.       updateStage()
  28.     end repeat
  29.   end if
  30. end
  31.